package com.zhangwei.fresco.ui;

import android.support.v7.app.AppCompatActivity;

import com.zhangwei.fresco.BaseApp;
import com.zhangwei.fresco.bean.Abus;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.App;
import org.androidannotations.annotations.Bean;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.Extra;

/**
 * @version V1.0
 * @description:
 * @title: Expands
 * @package com.zhangwei.fresco.ui
 * @author: zhangwei
 * @date: 2015-12-23 下午3:49
 */

@EActivity
public class BaseActivity extends AppCompatActivity {
    @Bean
    Abus abus;
    @App
    public BaseApp app;
    @Extra("1233")
    String text;
    @AfterViews
    public final void init() {
        initView();
        initData();
        abus.register(this);
    }

    public void initView() {

    }

    public void initData() {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        abus.unregister(this);
    }
}
